package com.huisou.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * StMicrocode entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tbl_system_microcode")
public class Microcode implements java.io.Serializable {
	
	private static final long	serialVersionUID	= 1581920972963701713L;
	@Id
	@Column(name = "id")
	@GeneratedValue
	private Integer				id;
	@Column(name = "code")
	private Integer				code;
	@Column(name = "parent_code")
	private Integer				parentCode;
	@Column(name = "name")
	private String				name;
	@Column(name = "sort")
	private Integer				sortorder;
	@Column(name = "status")
	private Short				status;
	
	public Microcode() {
	}
	
	public Microcode(String name) {
		this.name = name;
	}
	
	public Microcode(Integer id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public Microcode(Integer code, Integer parentCode, String name, Integer sortorder, Short status) {
		this.code = code;
		this.parentCode = parentCode;
		this.name = name;
		this.sortorder = sortorder;
		this.status = status;
	}
	
	public Integer getId() {
		return this.id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getCode() {
		return this.code;
	}
	
	public void setCode(Integer code) {
		this.code = code;
	}
	
	public Integer getParentCode() {
		return this.parentCode;
	}
	
	public void setParentCode(Integer parentCode) {
		this.parentCode = parentCode;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getSortorder() {
		return this.sortorder;
	}
	
	public void setSortorder(Integer sortorder) {
		this.sortorder = sortorder;
	}
	
	public Short getStatus() {
		return this.status;
	}
	
	public void setStatus(Short status) {
		this.status = status;
	}
}
